package cn.kgc.springcloud2038.alibaba.sentinel.service8401.controller;


import cn.kgc.springcloud2038.alibaba.sentinel.service8401.service.OrderService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class GoodsController {

    @Resource
    OrderService orderService;

    @RequestMapping("/order/query")
    public String orderQuery(){
        orderService.queryGoods();
        return "查询订单";
    }

    @RequestMapping("/order/save")
    public String orderSave(){
        orderService.queryGoods();
        return "保存订单";
    }
}